package com.neighbor.neighborhoodadmin.dao;

import com.neighbor.neighborhoodadmin.pojo.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 用户基本信息表 Mapper 接口
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:11:23
 */
public interface IUsersDao extends BaseMapper<Users> {
    //通过订单里面的用户id查询到具体的某个用户
    Users getUserByMallOrders(@Param("id") Integer id);

    // 根据贴子里的 userId 查询用户
    Users getByUserId(@Param("id") Integer userId);
}
